<form method="POST" id="" action="/add">
  <table width="" cellspacing="" cellpadding="" border="">
    <tr>
      <td><label for="post_category_id">Категория</label></td>
      <td>
	<select name="post_category_id">
	  <?php foreach ($cats as $cat) : ?>
     <option value="<?php print $cat['category_id'] ?>" <?php if (set_value('post_category_id') == $cat['category_id']) print "selected=\"selected\""; ?> > <?php print $cat["category_title"] ?> </option>
	  <?php endforeach; ?>
	</select>
      </td>
    </tr>

    <tr>
      <td><label for="post_title">Заголовок</label></td>
      <td><input type="text" name="post_title" value="<?php print set_value('post_title') ?>" /></td>
    </tr>
    <tr>
      <td colspan="2">
     <textarea name="post_text" id="" rows="10" cols="40" tabindex=""><?php print set_value('post_text') ?></textarea>
      </td>
    </tr>
    <tr>
      <td colspan="2"><input type="submit" name="" value="Добавить" /></td>
    </tr>
  </table>
</form>